package com.qmctl.rest.entity;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.qmctl.rest.bean.merchsync.MerchInfo;
@Entity
@Table(name="tMerchItem",schema="")
public class MerchItem implements Serializable{
  @Id
  private String id;
  private String actionType;
  private String warehouseCode;
  private String ownerCode;
  private String supplierCode;
  private String supplierName;
  private String itemCode;
  private String itemId;
  private String goodsCode;
  private String itemName;
  private String shortName;
  private String englishName;
  private String barCode;
  private String skuProperty;
  private String stockUnit;
  private double length;
  private double width;
  private double height;
  private double volume;
  private double grossWeight;
  private double netWeight;
  private String color;
  private String iSize;
  private String title;
  private String categoryId;
  private String categoryName;
  private String pricingCategory;
  private long safetyStock;
  private String itemType;
  private double tagPrice;
  private double retailPrice;
  private double costPrice;
  private double purchasePrice;
  private String seasonCode;
  private String seasonName;
  private String brandCode;
  private String brandName;
  private String isSNMgmt;
  private String productDate;
  private String expireDate;
  private String isShelfLifeMgmt;
  private long shelfLife;
  private long rejectLifecycle;
  private long lockupLifecycle;
  private long adventLifecycle;
  private String isBatchMgmt;
  private String batchCode;
  private String batchRemark;
  private String packCode;
  private String pcs;
  private String originAddress;
  private String approvalNumber;
  private String isFragile;
  private String isHazardous;
  private String remark;
  private String createTime;
  private String updateTime;
  private String isValid;
  private String isSku;
  private String packageMaterial;
  private String key1;
  private String key2;
  public MerchItem(){
  
  }
  public MerchItem(String seqId,MerchInfo merchInfo) throws UnsupportedEncodingException{
    id = seqId;
    retailPrice = merchInfo.getItem().getRetailPrice();
    costPrice = merchInfo.getItem().getCostPrice();
    purchasePrice = merchInfo.getItem().getPurchasePrice();
    seasonCode = merchInfo.getItem().getSeasonCode();
    seasonName = merchInfo.getItem().getSeasonName();
    brandCode = merchInfo.getItem().getBrandCode();
    brandName = merchInfo.getItem().getBrandName();
    isSNMgmt = merchInfo.getItem().getIsSNMgmt();
    productDate = merchInfo.getItem().getProductDate();
    expireDate = merchInfo.getItem().getExpireDate();
    isShelfLifeMgmt = merchInfo.getItem().getIsShelfLifeMgmt();
    shelfLife =  merchInfo.getItem().getShelfLife();
    rejectLifecycle = merchInfo.getItem().getRejectLifecycle();
    lockupLifecycle =  merchInfo.getItem().getLockupLifecycle();
    adventLifecycle =  merchInfo.getItem().getAdventLifecycle();
    isBatchMgmt =  merchInfo.getItem().getIsBatchMgmt();
    batchCode =  merchInfo.getItem().getBatchCode();
    batchRemark =  merchInfo.getItem().getBatchRemark();
    packCode    =  merchInfo.getItem().getPackCode();
    pcs =  merchInfo.getItem().getPcs();
    originAddress =  merchInfo.getItem().getOriginAddress();
    approvalNumber =  merchInfo.getItem().getApprovalNumber();
    isFragile =  merchInfo.getItem().getIsFragile();
    isHazardous =  merchInfo.getItem().getIsHazardous();
    remark =  merchInfo.getItem().getRemark();
    createTime =  merchInfo.getItem().getCreateTime();
    updateTime =  merchInfo.getItem().getUpdateTime();
    isValid =  merchInfo.getItem().getIsValid();
    isSku =  merchInfo.getItem().getIsSku();
    packageMaterial =  merchInfo.getItem().getPackageMaterial();
    key1 =  merchInfo.getItem().getExtendProps()==null?"":merchInfo.getItem().getExtendProps().getKey1();
    key2 =  merchInfo.getItem().getExtendProps()==null?"":merchInfo.getItem().getExtendProps().getKey2();
  }
  public String getId(){
    return id;
  }
  public void setId(String iId){
    id= iId;
  }
  public String getActionType(){
    return actionType;
  }
  public void setActionType(String sActionType){
    actionType = sActionType;
  }
  public String getWarehouseCode(){
    return warehouseCode;
  }
  public void setWarehouseCode(String sWarehouseCode){
    warehouseCode = sWarehouseCode;
  }
  public String getOwnerCode(){
    return ownerCode;
  }
  public void setOwnerCode(String sOwnerCode){
    ownerCode = sOwnerCode;
  }
  public String getSupplierCode(){
    return supplierCode;
  }
  public void setSupplierCode(String sSupplierCode){
    supplierCode = sSupplierCode;
  }
  public String getSupplierName(){
    return supplierName;
  }
  public void setSupplierName(String sSupplierName){
    supplierName = sSupplierName;
  }
  public String getItemCode(){
    return itemCode;
  }
  public void setItemCode(String sItemCode){
    itemCode = sItemCode;
  }
  public String getItemId(){
    return itemId;
  }
  public void setItemId(String sItemId){
    itemId = sItemId;
  }
  public String getGoodsCode(){
    return goodsCode;
  }
  public void setGoodsCode(String sGoodsCode){
    goodsCode = sGoodsCode;
  }
  public String getItemName(){
    return itemName;
  }
  public void setItemName(String sItemName){
    itemName = sItemName;
  }
  public String getShortName(){
    return shortName;
  }
  public void setShortName(String sShortName){
    shortName = sShortName;
  }
  public String getEnglishName(){
    return englishName;
  }
  public void setEnglishName(String sEnglishName){
    englishName = sEnglishName;
  }
  public String getBarCode(){
    return barCode;
  }
  public void setBarCode(String sBarCode){
    barCode = sBarCode;
  }
  public String getSkuProperty(){
    return skuProperty;
  }
  public void setSkuProperty(String sSkuProperty){
    skuProperty = sSkuProperty;
  }
  public String getStockUnit(){
    return stockUnit;
  }
  public void setStockUnit(String sStockUnit){
    stockUnit = sStockUnit;
  }
  public double getLength(){
    return length;
}
  public void setLength(double dLength){
    length = dLength;
  }
  public double getWidth(){
    return width;
}
  public void setWidth(double dWidth){
    width = dWidth;
  }
  public double getHeight(){
    return height;
}
  public void setHeight(double dHeight){
    height = dHeight;
  }
  public double getVolume(){
    return volume;
}
  public void setVolume(double dVolume){
    volume = dVolume;
  }
  public double getGrossWeight(){
    return grossWeight;
}
  public void setGrossWeight(double dGrossWeight){
    grossWeight = dGrossWeight;
  }
  public double getNetWeight(){
    return netWeight;
}
  public void setNetWeight(double dNetWeight){
    netWeight = dNetWeight;
  }
  public String getColor(){
    return color;
  }
  public void setColor(String sColor){
    color = sColor;
  }
  public String getISize(){
    return iSize;
  }
  public void setISize(String sISize){
    iSize = sISize;
  }
  public String getTitle(){
    return title;
  }
  public void setTitle(String sTitle){
    title = sTitle;
  }
  public String getCategoryId(){
    return categoryId;
  }
  public void setCategoryId(String sCategoryId){
    categoryId = sCategoryId;
  }
  public String getCategoryName(){
    return categoryName;
  }
  public void setCategoryName(String sCategoryName){
    categoryName = sCategoryName;
  }
  public String getPricingCategory(){
    return pricingCategory;
  }
  public void setPricingCategory(String sPricingCategory){
    pricingCategory = sPricingCategory;
  }
  public long getSafetyStock(){
    return safetyStock;
  }
  public void setSafetyStock(long iSafetyStock){
    safetyStock= iSafetyStock;
  }
  public String getItemType(){
    return itemType;
  }
  public void setItemType(String sItemType){
    itemType = sItemType;
  }
  public double getTagPrice(){
    return tagPrice;
}
  public void setTagPrice(double dTagPrice){
    tagPrice = dTagPrice;
  }
  public double getRetailPrice(){
    return retailPrice;
}
  public void setRetailPrice(double dRetailPrice){
    retailPrice = dRetailPrice;
  }
  public double getCostPrice(){
    return costPrice;
}
  public void setCostPrice(double dCostPrice){
    costPrice = dCostPrice;
  }
  public double getPurchasePrice(){
    return purchasePrice;
}
  public void setPurchasePrice(double dPurchasePrice){
    purchasePrice = dPurchasePrice;
  }
  public String getSeasonCode(){
    return seasonCode;
  }
  public void setSeasonCode(String sSeasonCode){
    seasonCode = sSeasonCode;
  }
  public String getSeasonName(){
    return seasonName;
  }
  public void setSeasonName(String sSeasonName){
    seasonName = sSeasonName;
  }
  public String getBrandCode(){
    return brandCode;
  }
  public void setBrandCode(String sBrandCode){
    brandCode = sBrandCode;
  }
  public String getBrandName(){
    return brandName;
  }
  public void setBrandName(String sBrandName){
    brandName = sBrandName;
  }
  public String getIsSNMgmt(){
    return isSNMgmt;
  }
  public void setIsSNMgmt(String sIsSNMgmt){
    isSNMgmt = sIsSNMgmt;
  }
  public String getProductDate(){
    return productDate;
  }
  public void setProductDate(String sProductDate){
    productDate = sProductDate;
  }
  public String getExpireDate(){
    return expireDate;
  }
  public void setExpireDate(String sExpireDate){
    expireDate = sExpireDate;
  }
  public String getIsShelfLifeMgmt(){
    return isShelfLifeMgmt;
  }
  public void setIsShelfLifeMgmt(String sIsShelfLifeMgmt){
    isShelfLifeMgmt = sIsShelfLifeMgmt;
  }
  public long getShelfLife(){
    return shelfLife;
  }
  public void setShelfLife(long iShelfLife){
    shelfLife= iShelfLife;
  }
  public long getRejectLifecycle(){
    return rejectLifecycle;
  }
  public void setRejectLifecycle(long iRejectLifecycle){
    rejectLifecycle= iRejectLifecycle;
  }
  public long getLockupLifecycle(){
    return lockupLifecycle;
  }
  public void setLockupLifecycle(long iLockupLifecycle){
    lockupLifecycle= iLockupLifecycle;
  }
  public long getAdventLifecycle(){
    return adventLifecycle;
  }
  public void setAdventLifecycle(long iAdventLifecycle){
    adventLifecycle= iAdventLifecycle;
  }
  public String getIsBatchMgmt(){
    return isBatchMgmt;
  }
  public void setIsBatchMgmt(String sIsBatchMgmt){
    isBatchMgmt = sIsBatchMgmt;
  }
  public String getBatchCode(){
    return batchCode;
  }
  public void setBatchCode(String sBatchCode){
    batchCode = sBatchCode;
  }
  public String getBatchRemark(){
    return batchRemark;
  }
  public void setBatchRemark(String sBatchRemark){
    batchRemark = sBatchRemark;
  }
  public String getPackCode(){
    return packCode;
  }
  public void setPackCode(String sPackCode){
    packCode = sPackCode;
  }
  public String getPcs(){
    return pcs;
  }
  public void setPcs(String sPcs){
    pcs = sPcs;
  }
  public String getOriginAddress(){
    return originAddress;
  }
  public void setOriginAddress(String sOriginAddress){
    originAddress = sOriginAddress;
  }
  public String getApprovalNumber(){
    return approvalNumber;
  }
  public void setApprovalNumber(String sApprovalNumber){
    approvalNumber = sApprovalNumber;
  }
  public String getIsFragile(){
    return isFragile;
  }
  public void setIsFragile(String sIsFragile){
    isFragile = sIsFragile;
  }
  public String getIsHazardous(){
    return isHazardous;
  }
  public void setIsHazardous(String sIsHazardous){
    isHazardous = sIsHazardous;
  }
  public String getRemark(){
    return remark;
  }
  public void setRemark(String sRemark){
    remark = sRemark;
  }
  public String getCreateTime(){
    return createTime;
  }
  public void setCreateTime(String sCreateTime){
    createTime = sCreateTime;
  }
  public String getUpdateTime(){
    return updateTime;
  }
  public void setUpdateTime(String sUpdateTime){
    updateTime = sUpdateTime;
  }
  public String getIsValid(){
    return isValid;
  }
  public void setIsValid(String sIsValid){
    isValid = sIsValid;
  }
  public String getIsSku(){
    return isSku;
  }
  public void setIsSku(String sIsSku){
    isSku = sIsSku;
  }
  public String getPackageMaterial(){
    return packageMaterial;
  }
  public void setPackageMaterial(String sPackageMaterial){
    packageMaterial = sPackageMaterial;
  }
  public String getKey1(){
    return key1;
  }
  public void setKey1(String sKey1){
    key1 = sKey1;
  }
  public String getKey2(){
    return key2;
  }
  public void setKey2(String sKey2){
    key2 = sKey2;
  }
}
